package bank.service.spring.employee;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import bank.model.dao.EmployeeDAO;
import bank.model.vo.Employee;

public class EditEmployeeController implements Controller{
	private EmployeeDAO employeeDAO;
	public EditEmployeeController(EmployeeDAO employeeDAO) {
		super();
		this.employeeDAO = employeeDAO;
		
	}
	public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
		
		
		employeeDAO.deleteEmployee(Integer.valueOf(request.getParameter("employee_id")));
		return new ModelAndView("employee/Done");
	}

}
